//
//  CinemaHeaderView.m
//  WXMovie
//
//  Created by HZApple on 16/4/8.
//  Copyright © 2016年 无限互联. All rights reserved.
//

#import "CinemaHeaderView.h"

@implementation CinemaHeaderView

- (void)setModel:(CinemaDistritModel *)model {
    _model = model;
    _label.text = _model.distritName;
    self.tag = _model.tag;
    
}

- (instancetype)init {
    return [self initWithFrame:CGRectZero];
}

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self _createUI];
    }
    return self;
}

- (void)_createUI {
    self.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"hotMovieBottomImage@2x"]];
    _label = [[UILabel alloc] initWithFrame:CGRectMake(20, 15, 200, 35)];
    _label.textColor = [UIColor whiteColor];
    _label.font = [UIFont systemFontOfSize:25];
    [self addSubview:_label];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
